Page Index Toggle Pages: 1 [2] 3 4  Send TopicPrint
Very Hot Topic (More than 25 Replies) Timeout waiting for output from CGI script (Read 28176 times)
XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 159
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #39 - Feb 26th, 2015 at 3:47pm
Print Post  
Dandello wrote on Feb 26th, 2015 at 3:42pm:
There's an open div in the first $yydebug block.  Wink

Ok... edit it when i am on pc  Smiley
  

Back to top
 
IP Logged
 
XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 159
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #38 - Feb 26th, 2015 at 3:46pm
Print Post  
Next Step....  catch open PID  Cheesy
  

Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Timeout waiting for output from CGI script
Reply #37 - Feb 26th, 2015 at 3:42pm
Print Post  
There's an open div in the first $yydebug block.  Wink
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Timeout waiting for output from CGI script
Reply #36 - Feb 26th, 2015 at 2:51pm
Print Post  
Sweet! Smiley
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 159
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #35 - Feb 26th, 2015 at 1:56pm
Print Post  
Hello

XTC wrote on Feb 26th, 2015 at 8:07am:
... will post this addon later  Wink

Ok ... check it out!

Debug Plus:

Adds extra debug process and CPU usage infos ....

- Performed file in this process
- Process number of ongoing process
- Process start time
- Perl Interpreter of process
- Perl Version
- CPU usage (not working on all server)
- Average server load -> 01 minutes, 05 minutes and 15 minutes ago  (not working on all server)

... and fix also a small HTML tag issue in the debug print (not closed "<span>" tag in class="under")

Edited:
Upload new ZIP File


lg XTC
« Last Edit: Feb 26th, 2015 at 4:42pm by XTC »  

Debug_Plus_v1.zip (Attachment deleted | 26 Downloads )
Debug_Plus_v1_german.zip (Attachment deleted | 26 Downloads )

Back to top
 
IP Logged
 
XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 159
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #34 - Feb 26th, 2015 at 8:07am
Print Post  
Hello

Fist Step: Extended Debug Info (look at attach img)
... will post this addon later  Wink

The cpu usage info will not work on all server ... if not supported it will print "not supported"

See it in action here: (debug is enable)
http://yabmods.yabbserver.com/cgi-bin/YaBMod/YaBB.cgi

lg XTC
  

debug.jpg (Attachment deleted | 28 Downloads )

Back to top
 
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #33 - Feb 25th, 2015 at 6:42pm
Print Post  
XTC wrote on Feb 25th, 2015 at 11:58am:
Ich check auch mal so einige Dinge .... die Serverlast war ja beim YaBBServer auch immer ein Thema!


Das liegt nicht nur an YaBB und Perl. Das Problem tritt mit Sicherheit auch bei pHp-Foren auf.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Timeout waiting for output from CGI script
Reply #32 - Feb 25th, 2015 at 6:31pm
Print Post  
pyragony54 wrote on Feb 25th, 2015 at 6:11pm:
With me now is resting in a box and the problem we have solved together. Be the server is running 18 hours stable. It then has only made the search problem, because this also by our better spam bots was used. The search function also pretty Server is influential. Now, only members use this function and is now resting in peace.

Excellent news.  Smiley
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #31 - Feb 25th, 2015 at 6:18pm
Print Post  
Dandello wrote on Feb 25th, 2015 at 3:08pm:
I know that YaBBForum had one like that from years ago (and yes, I'm pretty sure it was in Cyrillic) that had to be removed. There was hidden scripting in it.


I know Russia very well, but I work for the Russian Ministry of Internal Security. Do not trust the Russians, you do not know personally.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #30 - Feb 25th, 2015 at 6:11pm
Print Post  
With me now is resting in a box and the problem we have solved together. Be the server is running 18 hours stable. It then has only made the search problem, because this also by our better spam bots was used. The search function also pretty Server is influential. Now, only members use this function and is now resting in peace.
  

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Timeout waiting for output from CGI script
Reply #29 - Feb 25th, 2015 at 3:47pm
Print Post  
Okay - did some looking up of stuff.

Apparently Apache 2.2x had a couple vulnerabilities to race conditions: one has to do with symlinks and the other has to do with mod_proxy_http (I'm sure there are others but those were the ones that came up first in my search.) 

There's also an Apache RewriteMap directive that can cause problems with Perl if it isn't configured properly.

What we don't know is exactly what in the offending post was setting up the race condition.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Timeout waiting for output from CGI script
Reply #28 - Feb 25th, 2015 at 3:08pm
Print Post  
XTC wrote on Feb 25th, 2015 at 11:58am:
Where is the last point when YaBB.cgi is active?
... in Subs.pm sub print_HTML_output_and_finish { ?


Pretty sure the answer is yes. But Subs.pm  sub exit { follows it to exit. (But in a race condition it's not going to get to exit. So if there's going to be a way to catch a race condition, it will probably be in sub print_HTML_output_and_finish { )

If JonB wasn't so swamped right now I'd ask him to join in this discussion.

In theory the Cyrillic input going over the character limit is okay since the actual number of readable characters is a lot less than the number of characters that make up the html entity equivalent. However, it also means that the characters are unreadable in raw text form. It's also possible that one or more of the Cyrillic characters got mis-converted to html entities (or deliberately mis-converted) and those characters were bad stuff - like control characters.

I know that YaBBForum had one like that from years ago (and yes, I'm pretty sure it was in Cyrillic) that had to be removed. There was hidden scripting in it.

I'm almost tempted to suggest to people with older forums to run Xenu on it (Turn off Guardian first) and see what it finds and if it triggers anything. (Xenu is very aggressive in following links and WILL trigger bad stuff if it exists - that's how I found the bad post in YaBBForum.)


  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 159
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #27 - Feb 25th, 2015 at 11:58am
Print Post  
Hallo

Ich check auch mal so einige Dinge .... die Serverlast war ja beim YaBBServer auch immer ein Thema!

Race Condition: Ein Fehler wie bei Hase und Igel - so nach dem Motto Script startet was und schon schreit einer ich bin schon da. Das schaukelt sich solange auf bis es kracht.

@ll

I testing some points for control if a running Server Processnumber is closed ....

@Dandello

Where is the last point when YaBB.cgi is active?
... in Subs.pm sub print_HTML_output_and_finish { ?

lg XTC
  

Back to top
 
IP Logged
 
pyragony54
God Member
*****
Offline


I Love YaBB!

Posts: 664
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #26 - Feb 25th, 2015 at 5:49am
Print Post  
@ XTC

YaBB tut was für seine Kunden. Es gibt bestimmt noch mehrere Funktionen, welche die CPU-Auslastung des Servers hochtreiben. Jeder sollte also mal seine logs ansehen und die Auslastung kontrollieren.

Mein Beispiel sah so aus:

Code
Select All
53|zdravstvuyte<br /><br />здравствуйте||1424842491|admin| 



siehe Bild vom Server.

Hallo heißt auf russisch zdravstvuyte

Hallo belegt also 5 bit
zdravstvuyte benötigt 12 bit

Das ist noch nichts weltbewegendes.

Wird das allerdings in kyrillischer Schrift geschrieben, sind wir beim Thema.

здравствуйте  benötigt 96 bit und jetzt sind wir beim Thema.

50.000 Zeichen, die ich freigegeben habe, belegen dann tatsächlich auf dem Server 400.000 bit. Das in einer einzigen Antwort und der Server sagt "Tschüss Baby", zumal ja noch einiges an Antworten dann drunter kommt.


  

Bild2_016.jpg (Attachment deleted | 32 Downloads )

Bad manners keep people but the only reason for a kind of privilege, because no skin them on the mouth.
Back to top
 
IP Logged
 
XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 159
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Re: Timeout waiting for output from CGI script
Reply #25 - Feb 25th, 2015 at 4:33am
Print Post  
Good Team Work  Smiley
  

Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 
Send TopicPrint